<template>
  <nav>
    <router-link to="/money" class="item" active-class="selected">
      <icon-nav name="money" ></icon-nav>
      记账
    </router-link>
    <router-link to="/labels" class="item" active-class="selected">
      <icon-nav name="label" ></icon-nav>
      标签
    </router-link>
    <router-link to="statistics" class="item" active-class="selected">
      <icon-nav name="statistice" class="icon-nav" ></icon-nav>
      统计
    </router-link>
</nav>
</template>

<script lang="ts">
import iconNav from "./iconNav.vue";

export default {
  components: { iconNav },
};
</script>
<style lang="scss" scoped>
@import "~@/assets/style/helper.scss";
nav {
  @extend %outerShadow;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  > .item {
    padding: 2px 0;
    width: 33.33333%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

  }
  > .item.selected {
    color: $color-highlight;;
  }
   .icon {
    font-size: 32px;
  }
}

</style>